import { Injectable } from '@angular/core';
import {BadgeComponent, BadgePipe, SimpleJsonFormatter, SimplePipe} from '../../../ng-tools';

@Injectable({
  providedIn: 'root'
})

export class RobotGroupFormatterService {
    groupName: SimpleJsonFormatter = {propName: 'groupName', displayName: '组名'};
    id: SimpleJsonFormatter = {propName: 'id', displayName: '机器人组ID'};
    downTimes: SimpleJsonFormatter = {propName: 'downTimes', displayName: '发包间隔最低时间'};
    autoSendAfterSeconds: SimpleJsonFormatter = {propName: 'autoSendAfterSeconds', displayName: '发包基础时间'};
    aotoSnatchRedAfterSeconds: SimpleJsonFormatter = {propName: 'aotoSnatchRedAfterSeconds', displayName: '自动抢包时间'};
    notDeadUserId: SimpleJsonFormatter = {propName: 'notDeadUserId', displayName: '免死用户id'};
    constructor() {
    }
    get formatter() {
        return [
            this.groupName,
            this.id,
            this.downTimes,
            this.autoSendAfterSeconds,
            this.aotoSnatchRedAfterSeconds,
            this.notDeadUserId
        ];
    }
}
